
import photo from '../../../utils/wechatphoto'
Page({

  /**
   * 页面的初始数据
   */
  data: {  goods_id:'',near_id:''

  },

  onLoad: function (options) {
    console.log(options);
    
     if(options.goods_id){
       this.setData({
         goods_id:options.goods_id,
         near_id:options.near_id
       })
     }
  },

  onShow: function () {

  },
 // 相册多图打印
 wechatall(){
  wx.navigateTo({
    url: '/pages/edit8/edit8?goods_id='+this.data.goods_id+"&near_id="+this.data.near_id,
  })
},
// 微信多图打印
mobileall(){
 wx.navigateTo({
   url: '/pages/edit9/edit9?goods_id='+this.data.goods_id+"&near_id="+this.data.near_id,
 })
},
wechatsin(){
  // photo.wechatphoto(this.data.near_id,this.data.goods_id)
     wx.navigateTo({
       url: '/pages/edit/edit?wechat=1'+'&near_id='+this.data.near_id+'&goods_id='+this.data.goods_id,
     })
},
mobilesin(){
   photo.mobilephoto(this.data.near_id,this.data.goods_id)

},
 
})